package com.ruoyi.project.system.domain;

import java.math.BigDecimal;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 充值记录对象 siyu_recharge
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
public class SiyuRecharge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充值ID */
    private Integer id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 充值前余额 */
    @Excel(name = "充值前余额")
    private BigDecimal beforeBalance;

    /** 充值额 */
    @Excel(name = "充值额")
    private BigDecimal recharge;

    /** 充值后余额 */
    @Excel(name = "充值后余额")
    private BigDecimal afterBalance;

    public SiyuRecharge() {
    }

    public SiyuRecharge(Long userId, BigDecimal beforeBalance, BigDecimal recharge, BigDecimal afterBalance) {
        this.userId = userId;
        this.beforeBalance = beforeBalance;
        this.recharge = recharge;
        this.afterBalance = afterBalance;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBeforeBalance(BigDecimal beforeBalance) 
    {
        this.beforeBalance = beforeBalance;
    }

    public BigDecimal getBeforeBalance() 
    {
        return beforeBalance;
    }
    public void setRecharge(BigDecimal recharge) 
    {
        this.recharge = recharge;
    }

    public BigDecimal getRecharge() 
    {
        return recharge;
    }
    public void setAfterBalance(BigDecimal afterBalance) 
    {
        this.afterBalance = afterBalance;
    }

    public BigDecimal getAfterBalance() 
    {
        return afterBalance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("beforeBalance", getBeforeBalance())
            .append("recharge", getRecharge())
            .append("afterBalance", getAfterBalance())
            .append("createTime", getCreateTime())
            .toString();
    }
}
